Struct STaskAwaiter<TResult>
Assembly: WaaS.Core.dll
View Source
Declaration
public readonly struct STaskAwaiter<TResult> : ICriticalNotifyCompletion, INotifyCompletion
Implements:
System.Runtime.CompilerServices.ICriticalNotifyCompletion
, System.Runtime.CompilerServices.INotifyCompletion
Properties
IsCompleted
View Source
Declaration
public bool IsCompleted { get; }
Methods
GetResult()
View Source
Declaration
public TResult GetResult()
Returns
<TResult>
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
View Source
Declaration
public void OnCompleted(Action continuation)
Parameters
Type | Name | Description |
---|---|---|
System.Action | continuation | The action to invoke when the operation completes. |
Exceptions
System.ArgumentNullException
The <code class="paramref">continuation</code> argument is null (Nothing in Visual Basic).
UnsafeOnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
View Source
Declaration
public void UnsafeOnCompleted(Action continuation)
Parameters
Type | Name | Description |
---|---|---|
System.Action | continuation | The action to invoke when the operation completes. |
Exceptions
System.ArgumentNullException
The <code class="paramref">continuation</code> argument is null (Nothing in Visual Basic).
Implements
System.Runtime.CompilerServices.ICriticalNotifyCompletion
System.Runtime.CompilerServices.INotifyCompletion